package com.mini.gateway.core.modules.log.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * ApiLog
 *
 */
@Data
@NoArgsConstructor
@TableName("tb_log_api")
public class ApiLog {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("serial_no")
    private String serialNo;
    @TableField("route_id")
    private String routeId;
    @TableField("method")
    private String method;
    @TableField("host")
    private String host;
    @TableField("port")
    private Integer port;
    @TableField("path")
    private String path;
    @TableField("request_uri")
    private String uri;
    @TableField("remote_host")
    private String remoteHost;
    @TableField("start_time")
    private LocalDateTime startTime;
    @TableField("end_time")
    private LocalDateTime endTime;
    @TableField("response_code")
    private Integer responseCode;
    @TableField("elapsed_time")
    private Long elapsedTime;
    @TableField("gmt_created")
    private LocalDateTime gmtCreated;
}
